package com.xuhuan.practice.properties;

import java.util.List;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: huan.xu
 * @create: 2024/6/12 11:08
 * @description:
 **/
@Data
@ConfigurationProperties(prefix = "jwt-config")
@Component
public class JWTProperties {

  /**
   * 忽略令牌校验的请求
   */
  private List<String> excludePathPatterns;

  /**
   * 过期时间：小时
   */
  private Integer expiresHour;

  /**
   * 秘钥
   */
  private String secret;

}
